For information about data marshaling, see 有關(guān)數(shù)據(jù)封送的信息,請參見
Describes how copying and pinning affect data marshaling 描述復(fù)制和鎖定如何影響數(shù)據(jù)封送處理。
As is true of managed unmanaged data marshaling in general, the 對于托管/非托管數(shù)據(jù)封送處理,通常將
Describes the performance implications of mixed assemblies and data marshaling 描述混合程序集和數(shù)據(jù)封送處理的性能含義。
Net data types can be used in place of native types, and the details of data marshaling can be performed transparently inside the crcw net數(shù)據(jù)類型可用于替換本機(jī)類型,并且數(shù)據(jù)封送的細(xì)節(jié)可在crcw內(nèi)部透明地執(zhí)行。
When a managed client and unmanaged server are in the same apartment, the interop marshaling service handles all data marshaling 當(dāng)托管客戶端和非托管服務(wù)器位于同一單元中時,interop封送處理服務(wù)處理所有數(shù)據(jù)封送處理。
In other words, c interop uses the fastest possible method of data marshaling, whereas p invoke uses the most robust method 換句話說,c++interop使用的可能是最快的數(shù)據(jù)封送處理方法,而p/invoke使用的則是最可靠的方法。
Other data types, such as function pointers, arrays, and structures, require additional attributes to ensure proper data marshaling 其他數(shù)據(jù)類型(如函數(shù)指針、數(shù)組和結(jié)構(gòu))需要一些附加屬性以確保進(jìn)行正確的數(shù)據(jù)封送處理。
Same-apartment marshaling . because the client and server are in the same apartment, the interop marshaling service automatically handles all data marshaling 由于客戶端和服務(wù)器位于同一單元中,因此interop封送處理服務(wù)將自動處理所有數(shù)據(jù)封送處理。
No special coding is required because these data types have the same representation in memory, but more complex data types require explicit data marshaling )的非托管api而言,無需特殊編碼,因?yàn)檫@些數(shù)據(jù)類型在內(nèi)存中具有相同的表示形式,但是更復(fù)雜的數(shù)據(jù)類型需要顯式數(shù)據(jù)封送處理。